import request from '@/utils/request'

// 分页查询勘界资料列表
export function getTuDiList(params) {
  return request({
    method: 'get',
    url: '/land/landInfo/query',
    params
  })
}
//删除
export function delTuDi(pkid) {
  return request({
    method: 'delete',
    url: `/land/landInfo/removeById?pkid=${pkid}`
  })
}
//新增 || 编辑
export function saveOrUpdate(data) {
  return request({
    method: 'post',
    url: '/land/landInfo/saveOrUpdate',
    data
  })
}
//详情
export function getDetail(pkid) {
  return request({
    method: 'get',
    url: `/land/landInfo/queryById?pkid=${pkid}`
  })
}
export function getOnlyName(name) {
  return request({
    method: 'get',
    url: `/land/landInfo/checkProjectNameExist?projectName=${name}`
  })
}
